package com.nkzy.controller;

import com.nkzy.domain.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * Create by 王建烨 on 2022/4/6 8:23
 **/

@RestController
@RequestMapping("/users")
public class UserController {

    @RequestMapping("get")
    public List<User> get(){
        List<User> list = new ArrayList<>();
        list.add(new User(1,"张三","123456","123@qq.com"));
        list.add(new User(2,"李四","123456","234@qq.com"));
        list.add(new User(3,"王五","123456","345@qq.com"));
        list.add(new User(4,"赵六","123456","456@qq.com"));
        return list;
    }
}
